﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="HotelNews.aspx.cs" Inherits="HAINGUYEN_HOTEL.HotelNews" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="news">
        <asp:DataList ID="DataList1" runat="server">
            <ItemTemplate>
                <a onclick="loadContent('Baiviet/<%#Eval("NoiDung") %>')">
                    <img src="../Images/Baiviet/<%# Eval("HinhAnh") %>" />
                </a>
                <div class="topic">
                    <div class="head">
                        <a onclick="loadContent('Baiviet/<%#Eval("NoiDung") %>')">
                         <%# Eval("TieuDe") == null ? "" : (Eval("TieuDe").ToString().Length > 30 ? Eval("TieuDe").ToString().Substring(0, 30) + "..." :
                                                                 Eval("TieuDe").ToString())
                                    %>
                        </a>
                    </div>
                    <div>
                        <%# Eval("TieuDe") %>
                    </div>
                </div>
            </ItemTemplate>
        </asp:DataList>
    </div>
</asp:Content>
